#include "Input.h"
Input::Input() :
	m_mousePositionX(0),
	m_mousePositionY(0)
{

}
Input::~Input()
{

}
void Input::KeyDown(unsigned int key)
{
	m_keys[key] = true;
}
void Input::KeyUp(unsigned int key)
{
	m_keys[key] = false;
}
bool Input::IsKeyDown(unsigned int key)
{
	return m_keys[key];
}
void Input::MouseMove(double mousePositionX, double mousePositionY)
{
	m_mousePositionX = mousePositionX;
	m_mousePositionY = mousePositionY;
}
void Input::MouseOperate(unsigned int operation)
{
	switch (operation)
	{
	case WM_LBUTTONDOWN:
		m_mouseLeftButton = true;
		break;
	case WM_LBUTTONUP:
		m_mouseLeftButton = false;
		break;
	case WM_MBUTTONDOWN:
		m_mouseMiddleButton = true;
		break;
	case WM_MBUTTONUP:
		m_mouseMiddleButton = false;
		break;
	case WM_RBUTTONDOWN:
		m_mouseRightButton = true;
		break;
	case WM_RBUTTONUP:
		m_mouseRightButton = false;
		break;
	default:
		break;
	}
}